import {pillowRequest} from '@/base/PillowRequest';
import {Result} from '@/base/Result';
import {PlayRank} from '@/base/model/PlayRank';

export function getPlayRankApi(
  params:
    {
      createBegin: string,
      createEnd: string,
      memberId: number,
      num: number
    }
): Promise<Result<Array<PlayRank>>> {
  return pillowRequest.getArray(PlayRank, '/api/play-record/rank', {params});
}
